package users;

import book.BookList;
import function.IWork;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-06-27
 * Time: 19:44
 */
public abstract class User {
    protected String name;
    protected IWork[] iWorks;

    public User(String name) {
        this.name = name;
    }
    public abstract int menu() ;

    public void setWorks(int choice , BookList bookList) {
        this.iWorks[choice].work(bookList);
    }
}
